import Request from '@/utils/request'

export const repairManagementPageGet = data => {
    return Request({
        url: '/repairManagement/page',
        method: 'post',
        data: data,
    })
}
export const repairManagementListGet = data => {
    return Request({
        url: '/repairManagement/list',
        method: 'post',
        data: data,
    })
}

export const repairManagementDelete = id => {
    return Request({
        url: '/repairManagement/delete/' + id,
        method: 'get',
    })
}

export const repairManagementOne = id => {
    return Request({
        url: '/repairManagement/one/' + id,
        method: 'get',
    })
}

export const repairManagementUpdate = data => {
    return Request({
        url: '/repairManagement/update',
        method: 'post',
        data: data
    })
}

export const repairManagementAdd = data => {
    return Request({
        url: '/repairManagement/save',
        method: 'post',
        data: data
    })
}
